package com.lh.entity.table;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("leader_instruction")
public class IeaderInstruction {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 整改表id
     */
    @TableField("rectification_id")
    private Integer rectificationId;

    /**
     * 问题大类id
     */
    @TableField("summary_id")
    private Integer summaryId;

    /**
     * 小问题id
     */
    @TableField("ticket_id")
    private Integer ticketId;

    /**
     * 批示内容
     */
    @TableField("content")
    private String content;

    /**
     * 文件路径
     */
    @TableField("file_url")
    private String fileUrl;

    /**
     * 级别
     */
    @TableField("level")
    private Integer level;

    /**
     * 状态
     */
    @TableField("state")
    private String state;

    /**
     * 创建时间
     */
    @TableField("created_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;
}
